![]() | http://www.wavecom.com/forum Release version: 3.04 |
This sample depends on the following libraries :
This application allows to use the module as a web server.
This application starts an IP connection using the IPConnect library.
Once connected, the current IP address is displayed, in order to provide it to the client applications which want to connect.
Then it opens a local port in listen mode and waits for a remote peer to connect.
When the application receives a GET request from an HTTP client, it sends an "Hello world" HTML page.
Then the application closes the socket and opens a new listening TCP socket.
Important Warning :
The IP address will be accessible from the Internet only if the corresponding
"fixed IP address" option was subscribed for the used SIM card.
As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.
AT+SOCKETSTART (Socket start/stop command)
| Command | Answers |
| AT+SOCKETSTART? | +SOCKETSTART:
<state>
OK |
| AT+SOCKETSTART=? | +SOCKETSTART:
(0-1)
OK |
| AT+SOCKETSTART= <state> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| state | 0-1 | The current application running state. This parameter is stored in non-volatile memory. | 0 |
The init entry point sent to the MultiApp library is the Socket_init() function. The start/stop entry points linked to the +SOCKETSTART command are the Socket_start() and Socket_stop() functions.
Updated : Thu Apr 27 14:12:36 CEST 2006